package com.alex.xmlyfm.entities.discoverrecommend;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by
 * Author: alex
 * Email:
 * Date: 15-10-21.
 */
public class DiscoverRecommendItem {
    private String title;
    private boolean hasMore;

    public void parseJSON(JSONObject json) throws JSONException {
        if (json != null) {
            try {
                title = json.getString("title");
                hasMore = json.optBoolean("hasMore");
            } catch (JSONException e) {
                e.printStackTrace();
            }
        }
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isHasMore() {
        return hasMore;
    }

    public void setHasMore(boolean hasMore) {
        this.hasMore = hasMore;
    }


}
